package znbkTestPaperRdqh.saveRdqhPaper;

import com.example.lancooznbk.service.HttpPostServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;

import retrofit2.Retrofit;
import rx.Observable;
import znbkTestPaperXtfx.saveXtfxPaper.SaveSystemReviewPaperEntity;

/**
 * Created by Administrator on 2018\4\4 0004.
 */

public class SaveWeekAscensionPaperApi extends BaseApi {

    private SaveWeekAscensionPaperEntity mSaveWeekAscensionPaperEntity;


    public SaveWeekAscensionPaperEntity getmSaveWeekAscensionPaperEntity() {
        return mSaveWeekAscensionPaperEntity;
    }

    public void setmSaveWeekAscensionPaperEntity(SaveWeekAscensionPaperEntity mSaveWeekAscensionPaperEntity) {
        this.mSaveWeekAscensionPaperEntity = mSaveWeekAscensionPaperEntity;
    }

    public SaveWeekAscensionPaperApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostServer httpPostServer = retrofit.create(HttpPostServer.class);

        return httpPostServer.saveRdqhPaperItemAnswerDetail(mSaveWeekAscensionPaperEntity);
    }

}